package com.xiaolin.enums;

/**
 * @ClassName ParamsEnum
 * @Description 有参枚举
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/30
 * @Version 1.0
 */
public enum  ParamsEnum {
    SUCCESS(1,"操作成功","数据"),FAIL(2,"操作失败",null);
    private int code;
    private String msg;
    private Object data;
    ParamsEnum(int code,String msg,Object data){
        this.code=code;
        this.msg=msg;
        this.data=data;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public Object getData() {
        return data;
    }
}
